//document.body.innerHTML = "test";

function logd(info: any): void {
    let logFuc = alert;

    
    let numArray: Array<number> = [1, 2, 3];
    logFuc(typeof "");
}

class Animal {
    constructor(private name: string) {
    }

    GetName(): string {
        return this.name;
    }

    SetName(sendName: string) {
        this.name = sendName;
    }
}

interface AnimalInterface {
    num: number;
    [index: number]: Animal;
}

let animalInterface: AnimalInterface;
let cat = new Animal("cat");
animalInterface = { num: 2,  1: cat , 2: cat };
document.body.innerHTML = "223";
logd(animalInterface);